<?php
/**
 * 知识笔记管理 RIA 模版主页
 * @package Knowlege Note Manager RIA Template Index.php
 * @author MoeFront 2015
 * @version 1.0
 * @link https://moefront.github.io
 */
include 'header.php';
if(isset($_GET['page']) && $_GET['page']> 0)
  $p = ($_GET['page']-1)*3;
else
   $p = 0;
?>
<div class="mf-banner">
	<div class="container">
		<div class="panel">
			<h2 class="panel-title">
			<?php if(!isset($_GET['page'])): ?>
				我的笔记本：共有 <?php echo $this->count();?> 篇笔记
			<?php else: ?>
				您正在查看分页 <?php echo $_GET['page']; ?> 的文章
			<?php endif;?>
			</h2>
			<br>
			<?php $this->getRecentNotes('<div class="note-container">',"</div>",$p);?>
			<?php $this->pageNav(); ?>
			<?php $this->need('Template/footer.php');?>
		</div>
	</div>
</div>